package com.qtummatrix.controller;

import com.opensymphony.xwork2.ActionSupport;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

//客户模板下载
//额度期限
public class DownAction extends ActionSupport {
    private InputStream inputStream;
    private String fileName;

    public InputStream getInputStream() {
        return inputStream;
    }

    public String getFileName() {
        return fileName;
    }

    public String down() throws FileNotFoundException {
        fileName = "abcd.xls";
        String path = "D:/"+fileName;
        inputStream = new FileInputStream(path);
        return SUCCESS;
    }
}
